#ifndef KALMAN_FILTER_H
#define KALMAN_FILTER_H


class KalmanFilter {
public:
    KalmanFilter(double process_noise, double measurement_noise, double estimated_error, double initial_value);

    double update(double measurement);

private:
    double q; // 过程噪声协方差
    double r; // 测量噪声协方差
    double p; // 估计误差
    double x; // 估计值
};

#endif